﻿using System;
using System.Windows.Input;
using wordroid.Model;

namespace wordroid.ViewModel.commands {
    
    public abstract class BaseCommand : ICommand {
        public bool CanExecute(object parameter) {
            return parameter != null && parameter is Word;
        }

        public abstract void Execute(object parameter);

        public event EventHandler CanExecuteChanged;
    }
}
